<?php

namespace App\Repositories\Eloquent\Api;

use App\Repositories\Eloquent\BaseModel;
use EasySwoole\ORM\AbstractModel;


class MemberModel extends AbstractModel
{
    use BaseModel;
    protected $tableName = 'k_user';
    protected $connectionName = 'wr';
    protected $autoTimeStamp = true;
    protected $createTime = 'add_time';
    protected $updateTime = 'update_time';


    public function getItemByAccount(string $account = ''){
        return $this->create()->get(['account'=> $account]);
    }
}